// 模拟获取所有的任务
const mockTaskGetAll = ()=>{
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            try {
                let tasks = []
                for (let i = 1; i < 30; i += 4) {
                    tasks.push({
                        id: i,
                        name: `学习Vue3${i}`,
                        content: "学习Vue3基础语法, 包括组件、路由、状态管理等",
                        status: 'init',
                        add_time: '2025-05-01 12:00:00',
                    })
                    tasks.push({
                        id: i + 1,
                        name: `学习Vue3${i + 1}`,
                        content: "学习Vue3基础语法, 包括组件、路由、状态管理等",
                        status: 'start',
                        add_time: '2025-05-01 12:00:00',
                    })
                    tasks.push({
                        id: i + 2,
                        name: `学习Vue3${i + 2}`,
                        content: "学习Vue3基础语法, 包括组件、路由、状态管理等",
                        status: 'finish',
                        add_time: '2025-05-01 12:00:00',
                    })
                    tasks.push({
                        id: i + 3,
                        name: `学习Vue3${i + 3}`,
                        content: "学习Vue3基础语法, 包括组件、路由、状态管理等",
                        status: 'delete',
                        add_time: '2025-05-01 12:00:00',
                    })
                }
                resolve(tasks);
            } catch (error) {
                reject(error);
            }
        }, 1000); // 模拟 1 秒的延迟
    });
}

export default  {
    mockTaskGetAll,
}